{if $MOD[page_irec]}
	{php $records1=tag("moduleid=".$moduleid."&condition=status=3 and level=1 and video!=''&order=".$MOD[order]."&pagesize=1&order=addtime desc&template=null")}
	{if $records1}
<script type="text/javascript" src="{DT_PATH}template/{$CFG[template]}/skin/player/Flvplayer.js"></script>
<div class="onmax01">
	<div class="row">
		<div class="boxvalue">
			<div class="col-sm-5">
				<div class="box-value">
					<div class="clearfix item-top">
						<div id="videohomeplay" class="clearfix" style="background-color:#000000">
							<div id="player" style="width:100%;height:100%"></div>
						</div>
<script language="javascript">
function videohomeplay_reset(){
	if ($(window).width()>767){
		$("#videohomeplay").css("height","287px");
	}
	else{
		$("#videohomeplay").css("height",parseInt($("#videohomeplay").width()*0.75));
	}
}
$(document).ready(function (){
	$('#player').html(VideoPlayer('{$records1[0][video]}', 1, 1, true));
	setInterval("videohomeplay_reset()",1000);
})
</script>
					</div>
				</div>
			</div>
			<div class="col-sm-7">
				<div class="box-value">
					{php $records2=tag("moduleid=".$moduleid."&condition=status=3 and level>0&pagesize=3&order=level desc,addtime desc&template=null");}
					{if $records2}
					<div class="box01 item-top">
						<div class="boxtitle clearfix">
							<span>推荐视频</span>
						</div>
						<div class="clearfix">
							{loop $records2 $r2}
							<div class="item-top-min clearfix">
								<a class="texttitle title" href="{$r2[linkurl]}" target="_blank" title="{strip_tags($r2[title])}"><i class="fa fa-certificate"></i> {strip_tags($r2[title])}</a>
								<div>{strip_tags($r2[introduce])}</div>
							</div>
							{/loop}
						</div>
					</div>
					{/if}
				</div>
			</div>
		</div>
	</div>
</div>
	{/if}
{/if}